package no.mehdi.usereg.rfid.listeners;

import no.mehdi.usereg.rfid.events.ErrorEventApp;

import org.springframework.context.ApplicationListener;

import com.phidgets.event.ErrorEvent;
import com.phidgets.event.ErrorListener;


public class ErrorListenerApp implements ErrorListener,ApplicationListener<ErrorEventApp>{

	@Override
	public void onApplicationEvent(ErrorEventApp arg0) {
		System.out.println("Fired a "+ arg0);
	}

	@Override
	public void error(ErrorEvent errorevent) {
		onApplicationEvent(new ErrorEventApp(errorevent.getSource()));		
	}
	
	

}
